home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CWellMesh
- {
- string MeshFile = "Models/B_Well.mesh";
- string SkinFile = "Models/B_Well.skin";
- }
-
- class CWellStateControl extends CUnitLifeControl
- {
- void CWellStateControl()
- {
- CUnitLifeControl(3000.0);
- m_DestroyPause = 7.5;
- m_ExplosionId = "EXPLID_ItemExplosion";
- }
- }
-
- // Building without ground control (for use in villages)
- class CBaseWell extends CBuilding, CUnitWithStateControl
- {
- void CBaseWell()
- {
- InitializeModelAsStatic("CWellMesh");
- CUnitWithStateControl("CWellStateControl");
- Core_AddClassificator(CLASSIFICATOR_NOTVISIBLEONRADAR);
- }
- }
-
- // Single game object
- class CMountedWell extends CBaseWell
- {
- void CMountedWell()
- {
- InitializeGroundControl();
- }
- }
-
-
-